package com.jxl.domain.convert;


import com.jxl.domain.entity.AuthUserRoleBO;
import com.jxl.infra.basic.entity.AuthUserRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserRoleBOConvert {

    AuthUserRoleBOConvert INSTANCE = Mappers.getMapper(AuthUserRoleBOConvert.class);

    /**
     * 类型转换
     * @param authUserRoleBO
     * @return
     */
    AuthUserRole convertBOToAuthUserRole(AuthUserRoleBO authUserRoleBO);

    /**
     * 集合类型转换
     * @param authUserRoleBOS
     * @return
     */
    List<AuthUserRole> convertBOToAuthUserRoleList(List<AuthUserRoleBO> authUserRoleBOS);
}
